package edu.neusoft.kongfanfei317.yuejian1.service;

import java.util.List;

import edu.neusoft.kongfanfei317.yuejian1.bean.CollectBean;
import edu.neusoft.kongfanfei317.yuejian1.bean.CollectListBean;
import edu.neusoft.kongfanfei317.yuejian1.bean.MasterListBean;
import edu.neusoft.kongfanfei317.yuejian1.bean.LoginBean;
import edu.neusoft.kongfanfei317.yuejian1.bean.RegisterBean;
import edu.neusoft.kongfanfei317.yuejian1.bean.ClubBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;



public interface Service {
    @GET("userLogin.do")
    Call<LoginBean>
    getlogin(@Query("username") String username,
             @Query("userpass") String userpass);

    @GET("userRegister.do")
    Call<RegisterBean>
    getregister(
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address,
            @Query("comment") String comment
    );
    @GET("getAllClubs.do")
    Call<List<ClubBean>>
    getshop();

    @GET("getFoodByClub.do")
    Call<List<MasterListBean>>
    getfood(@Query("shop_id") String shop_id);

     @GET("getAllUserCollection.do")
    Call<List<CollectListBean>>
    getcollect(
             @Query("user_id") String user_id,
             @Query("flag") String flag
     );

    @GET("isCollected.do")
    Call<CollectBean>
    judge(@Query("user_id") String user_id,
          @Query("shop_food_id") String shop_food_id,
          @Query("flag") String flag);
    @GET("userCollectShop.do")
    Call<RegisterBean>
    collectshop(@Query("user_id") String user_id,
                @Query("shop_id") String shop_id);
    @GET("userCollectFood.do")
    Call<RegisterBean>
    collectfood(@Query("user_id") String user_id,
                @Query("food_id") String food_id);

    @GET("getFoodBySearch.do")
    Call<List<MasterListBean>>
    search(@Query("search") String search);

    @GET("getUserById.do ")
            Call<RegisterBean>
            getuser(@Query("getuser") String getuser);

    @GET("updateUserById.do ")
            Call<RegisterBean>
            update(@Query("user_id") String id,
                   @Query("username") String username,
                   @Query("userpass") String userpass,
                   @Query("mobilenum") String mobilenum,
                   @Query("address") String address);

}
